wip: no quick transform, when there is no vertices#1380
Closed
guziy wants to merge 1 commit into
Closed
Conversation
f5b2ca5 to
bed71b3
Compare
Member
|
What is the error that this is fixing? You will need an editable install of Cartopy in order to run tests. |
Contributor
Author
It fixes the IndexError and allows to plot my data. I need to make a test yet for this.
At some point, I was able to run the tests, but now I have to remember how I did it. |
Member
bed71b3 to
8dceb63
Compare
Contributor
Author
|
Sorry @rcomer, I can't find the test code... I should have posted it....(( I did rebased and pushed, not sure if you have a test for this problem though... |
rcomer
reviewed
Oct 30, 2023
| return vertices | ||
|
|
||
| if self == src_crs: | ||
| if self == src_crs and len(vertices) > 0: |
Member
There was a problem hiding this comment.
Because of the lines 1250-1251, which were added at #2213, I don’t think this check will ever be exercised.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale
The tricontourf fails with the dataset I have, because the
verticesparameter inquick_vertices_transformis empty.Implications
Checklist
If you have not already done so, ensure you've read and signed the Contributor Licence Agreement (CLA).
(See the governance page for the CLA and what to do with it).
Ensure there is a suitable item in the cartopy test suite for the change you are proposing.
I am not able to run the tests.